<template>
  <div>
    <h2 style="margin-bottom: 15px;"><b>用户行为日志</b></h2>
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="userLogId" label="序号" width="200" />
        <el-table-column prop="userLogData" label="操作内容" width="500" />
        <el-table-column label="操作时间" width="500" >
          <template v-slot="scope">
            {{moment(scope.row.handleTime).format("YYYY年MM月DD日")}}
          </template>
        </el-table-column>
      </el-table>
  </div>
</template>
<script lang="ts" setup>
import{ref,onMounted} from 'vue';
import axios from 'axios';
import moment from 'moment';
const apiUri=import.meta.env.VITE_APP_API_URL_WAREHOUSE;


onMounted(()=>{
 GetTableData();
})

const tableData=ref([]);
const GetTableData=()=>{
 axios.get(apiUri+'/api/UserLog/ShowUserLogData').then(res=>{
   tableData.value=res.data.data;
   console.log(res.data);
 })
}



</script>